<@_lotteryList startStartDate=startStartDate endStartDate=endStartDate startEndDate=startEndDate endEndDate=endEndDate
            orderField=orderField orderType=orderType pageIndex=pageNum count=numPerPage>
<div class="pageHeader">
    <form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
        <#include "../include_page/paramters.html"/>
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>开始日期:</label>
                    <input type="text" name="startStartDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${startStartDate!}" />
                    <span>-</span>
                    <input type="text" name="endStartDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${endStartDate!}" />
                </li>
                <li>
                    <label>结束日期:</label>
                    <input type="text" name="startEndDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${startEndDate!}" />
                    <span>-</span>
                    <input type="text" name="endEndDate" class="date" size="10" dateFmt="yyyy-MM-dd" value="${endEndDate!}" />
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <button type="submit" class="buttonActive">搜索</button>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a href="cmsLottery/add.html" target="navTab" rel="cmsLottery/add"><i class="icon-plus-sign-alt icon-large"></i> 添加抽奖</a></li>
            <li><a href="cmsLottery/add.html?id={sid}" target="navTab" rel="cmsLottery/edit"><i class="icon-edit icon-large"></i> 修改抽奖</a></li>
            <li><a href="cmsLottery/delete.do?id={sid}" title="确定要删除该条记录吗?" target="ajaxTodo"><i class="icon-trash icon-large"></i> 删除</a></li>
        </ul>
    </div>
    <table class="list" width="100%" layoutH="99">
        <thead>
            <tr>
                <th>ID</th>
                <th>标题</th>
                <th orderField="startDate" class="<#if orderField??&&'startDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">开始日期</th>
                <th orderField="endDate" class="<#if orderField??&&'endDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">结束日期</th>
                <th>抽奖次数</th>
                <th>礼品剩余/总量</th>
                <th>概率</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <#list page.list as a>
            <tr target="sid" rel="${a.id}">
                <td>${a.id!}</td>
                <td>${(a.title)!}</td>
                <td>${a.startDate!}</td>
                <td>${a.endDate!}</td>
                <td>${a.lotteryCount!}</td>
                <td>${a.lastGift!}/${a.totalGift!}</td>
                <td>${a.fractions!}/${a.numerator!}</td>
                <td><a href="cmsLotteryUser/list.html?queryLotteryId=${a.id}" target="navTab" rel="cmsLotteryUser/list" icon="<i class='icon-smile icon-large'></i>">抽奖用户管理</a></td>
            </tr>
            </#list>
        </tbody>
    </table>
    <#include "../include_page/page.html"/>
</div>
</@_lotteryList>